x=list(range(2,10001))
print(x)
item =2
while item<=100:
    n=len(x)
    for i in range(len(x)-1,-1,-1):
        if x[i] % item ==0 and x[i] != item:
            x.remove(x[i])
    item+=1

print(x)